package com.zc.service;

import com.github.pagehelper.PageInfo;
import com.zc.pojo.Customer;

public interface CustomerService {

    /**
     * 分页查询记录信息
     *
     * @return
     */
    public PageInfo<Customer> queryByPage(String realName, String phone, Integer page, Integer limit);

    /**
     * 保存客户信息
     *
     * @param customer
     */
    public void save(Customer customer);

    /**
     * 通过客户信息id查询客户信息
     *
     * @param customerId
     * @return
     */
    public Customer getById(Long customerId);

    /**
     * 修改客户信息
     *
     * @param customer
     */
    public void update(Customer customer);

    /**
     * 删除客户信息
     *
     * @param id
     */
    public void delete(Long id);

    /**
     * 逻辑删除信息
     *
     * @param customerId
     */
    void logicalDelete(Long customerId);
}